package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SignRuleMapper;
import com.ruoyi.system.domain.SignRule;
import com.ruoyi.system.service.ISignRuleService;

/**
 * 签到规则Service业务层处理
 * 
 * @author kinglu
 * @date 2021-11-30
 */
@Service
public class SignRuleServiceImpl implements ISignRuleService 
{
    @Autowired
    private SignRuleMapper signRuleMapper;

    /**
     * 查询签到规则
     * 
     * @param signTimes 签到规则主键
     * @return 签到规则
     */
    @Override
    public SignRule selectSignRuleBySignTimes(Long signTimes)
    {
        return signRuleMapper.selectSignRuleBySignTimes(signTimes);
    }

    /**
     * 查询签到规则列表
     * 
     * @param signRule 签到规则
     * @return 签到规则
     */
    @Override
    public List<SignRule> selectSignRuleList(SignRule signRule)
    {
        return signRuleMapper.selectSignRuleList(signRule);
    }

    /**
     * 新增签到规则
     * 
     * @param signRule 签到规则
     * @return 结果
     */
    @Override
    public int insertSignRule(SignRule signRule)
    {
        return signRuleMapper.insertSignRule(signRule);
    }

    /**
     * 修改签到规则
     * 
     * @param signRule 签到规则
     * @return 结果
     */
    @Override
    public int updateSignRule(SignRule signRule)
    {
        return signRuleMapper.updateSignRule(signRule);
    }

    /**
     * 批量删除签到规则
     * 
     * @param signTimess 需要删除的签到规则主键
     * @return 结果
     */
    @Override
    public int deleteSignRuleBySignTimess(Long[] signTimess)
    {
        return signRuleMapper.deleteSignRuleBySignTimess(signTimess);
    }

    /**
     * 删除签到规则信息
     * 
     * @param signTimes 签到规则主键
     * @return 结果
     */
    @Override
    public int deleteSignRuleBySignTimes(Long signTimes)
    {
        return signRuleMapper.deleteSignRuleBySignTimes(signTimes);
    }
}
